﻿using Script.UI.Component;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Script.UI
{
    public class UI_Histogram<T> : UI_Histogram where T : HistogramDataBase
    {
        protected T Data { get { return _data as T; } }

    }
    public class UI_Histogram : MonoBehaviour
    {
        protected HistogramDataBase _data;
        // Start is called before the first frame update
        void Start()
        {

        }

        // Update is called once per frame
        void Update()
        {

        }

        public void Refresh(HistogramDataBase data)
        {
            _data = data;
            OnRefresh();
        }

        protected virtual void OnRefresh()
        {

        }
    }

}
